package com.gs.wzmanager.service;


import com.gs.wzmanager.entity.Resource;
import com.gs.wzmanager.entity.Role;
import com.gs.wzmanager.entity.User;

import java.util.List;

public interface UserService {

    void addUser(User user);

    void addUserRole(String userId,int roleId);

    void updateSimpleUser(User user);

    List<User> queryUserByName(String name);

    User queryUserById(String id);

    User queryUserByPhone(String phone);

    List<Resource> queryResourceByUserId(String userId);

    List<Role> queryRoleByUserId(String userId);

    List<User> queryAllUser();

    void deleteUser(String id);

    void deleteUserRoleByUserId(String userId);
}
